<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var time = 6;
        for(var i = 1;i<time;i++) {
            document.write('星期'+i) // 字符串拼接
            document.write('<p>8:30 上班打卡</p>')
            document.write('<p>17:30 下班打卡</p>')
            document.write('<br>')
        }
    </script>
</body>
</html>